<template>
	<view class="CommissionRank">
		 
		<view class="wrapper">
		 
			
			<view class="list">
				<view class="item acea-row row-between-wrapper" v-for='(item,index) in rankList' :key='index'>

					<view class="num">
						{{index+1}}
					</view>
					
					<view class="picTxt acea-row row-between-wrapper">
						<view class="pictrue">
							<image :src="item.headportrait"></image>
						</view>
						<view class="text line1">{{item.name}}</view>
					</view>
					<view class="people font-color">￥{{item.aggregate_commission/100}}</view>
				</view>
				
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				navList: [
					'总排行',
				],
				position: 0,
				rankList: [],
				active: 0,
			}
		},
		onShow() {
			this.init()
		},
		methods: {
			switchTap(index) {
				this.active = index
			},
			init(){
				this.$http('common.getAggregateCommissionRank', {
					token: this.$tools.getToken(),
				
				}).then(res => {
					 
					this.rankList = res.data.data
				})
			}
		}
	}
</script>

<style>
	.row-center-wrapper {
		align-items: center;
		justify-content: center;
	}

	.acea-row {
		display: flex;
		flex-wrap: wrap;
	}

	.row-between-wrapper {
		align-items: center;
		justify-content: space-between;
	}
	.acea-row.row-around {
	    justify-content: space-around;
	}
	.CommissionRank .header {
		background: url("") no-repeat;
		width: 100%;
		height: 344rpx;
		background-size: 100% 100%;
		position: relative;
		z-index: -1;
	}

	.CommissionRank .header .rank {
		font-size: 33rpx;
		color: #fff;
		position: absolute;
		top: 160rpx;
		left: 48rpx;
	}

	.font-color {
		color: #fc4141 !important;
	}

	.CommissionRank .header .rank .num {
		font-size: 51rpx;
		font-weight: bold;
		margin: 0 10rpx;
	}

	.CommissionRank .wrapper {
		width: 710rpx;
		background-color: #fff;
		border-radius: 20rpx;
		margin: 0 auto 0 auto;
	}

	.CommissionRank .wrapper .nav {
		height: 99rpx;
		border-bottom: 2.5rpx solid #f3f3f3;
		font-size: 30rpx;
		font-weight: bold;
		color: #999;
		line-height: 99rpx;
	}

	.CommissionRank .wrapper .nav .item.font-color {
		border-bottom: 4rpx solid #e93323;
	}

	.CommissionRank .wrapper .list {
		padding: 0 30rpx;
	}

	.CommissionRank .wrapper .list .item {
		border-bottom: 1px solid #f3f3f3;
		height: 101rpx;
		font-size: 28rpx;
	}

	.CommissionRank .wrapper .list .item .num {
		color: #666;
	 
	}

	.CommissionRank .wrapper .list .item .num image {
		width: 34rpx;
		height: 40rpx;
		display: block;
	}

	.CommissionRank .wrapper .list .item .picTxt {
		width: 350rpx;
		 
	}

	.CommissionRank .wrapper .list .item .picTxt .pictrue {
		width: 68rpx;
		height: 68rpx;
	}

	.CommissionRank .wrapper .list .item .picTxt .pictrue image {
		width: 100%;
		height: 100%;
		display: block;
		border-radius: 50%;
	}

	.CommissionRank .wrapper .list .item .picTxt .text {
		width: 262rpx;
		color: #333;
	}

	.CommissionRank .wrapper .list .item .people {
		width: 175rpx;
		text-align: right;
	}
</style>
